# Contributor: Tycho Andersen <tycho@docker.com>
# Maintainer: Tycho Andersen <tycho@docker.com>
pkgname=libsemanage
pkgver=3.6
pkgrel=0
pkgdesc="SELinux binary policy manipulation library"
url="https://github.com/SELinuxProject/selinux/wiki"
arch="all"
license="LGPL-2.0-or-later"
makedepends="
	libselinux-dev
	libsepol-dev
	bzip2-dev
	audit-dev

	bison
	flex
	python3
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/SELinuxProject/selinux/releases/download/$pkgver/libsemanage-$pkgver.tar.gz"

build() {
	make PYTHON=python3
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8998b6a1b254a9673b99ae4d70a1edc769bb728a44f573cdf62e0a9c9392b77644ee2d70e1936a2f8a9a7f8b063ce98a981f4b8b7060f5b82791889330d69364  libsemanage-3.6.tar.gz
"
